#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)

#include <stdio.h>

int main()
{
    int n = 0;
    scanf("%d", &n);
    int count = 0;
    int input = 0;
    double sum = 0;
    int zero = 0;
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &input);
        if (input == 0)
        {
            zero++;
            continue;
        }
        if (input < 0)
        {
            count++;
        }
        else
        {
            sum += input;
        }

    }
    if (sum)
        printf("%d %.1f", count, sum / (n - count - zero));
    else
        printf("%d %.1f", count, 0.0);

    return 0;
}